home *** CD-ROM | disk | FTP | other *** search
/ 64'er 1994 August / 64er_Magazin_94-08_1994_Markt__Technik_de_Side_A.d64 / imp.source #3 < prev    next >
Text File  |  2022-10-26  |  19KB  |  1,153 lines

  1.  
  2.  
  3.  
  4. ;---------------------------------------
  5. ;
  6. ;       - I M P E R O I D   V 3 -
  7. ;
  8. ;         - by Hannes Sommer -
  9. ;
  10. ;      - (c)   Magna Media '94 -
  11. ;
  12. ;---------------------------------------
  13.  
  14.  
  15.  
  16.  
  17. v        = 53248
  18. be       = $47f8
  19. bord     = 703
  20.  
  21.          *= $8000
  22.  
  23.  
  24.          jmp title
  25.  
  26.  
  27. cols     .byte 0,0,0,0,0,0,0,0
  28.          .byte 0,0,0,0,0,0,0,0
  29.          .byte 0,9,8,10,15,7,1,1
  30.          .byte 1,1,13,3,14,4,6,0
  31.  
  32.          .byte 0,0,0,0,0,0,0,0
  33.          .byte 0,0,0,0,0,0,0,0
  34.  
  35.  
  36.  
  37. ;------------ F L I - Logo -------------
  38.  
  39.  
  40. fli
  41.  
  42.          lda #56
  43.          sta $d011
  44.  
  45.          inc fly1+1
  46. fly1     lda #0
  47.          lsr a
  48.          and #31
  49.          tay
  50.  
  51.          ldx #0
  52. fli0     lda cols,y
  53.          sta $50,x
  54.          iny
  55.          inx
  56.          cpx #15
  57.          bne fli0
  58.          lda #0
  59.          sta $5f
  60.  
  61.  
  62.          lda #49
  63. fli1     cmp $d012
  64.          bcs fli1
  65.  
  66.          ldx #3
  67. fli2     dex
  68.          bne fli2
  69.  
  70.          lda #63
  71.          ldx #8
  72.          sta $d011
  73.          stx $d018
  74.          lda $5f
  75.          sta $d020
  76.          sta $d021
  77.          lda #56
  78.          ldx #24
  79.          sta $d011
  80.          stx $d018
  81.          lda $5f
  82.          sta $d020
  83.          sta $d021
  84.          lda #57
  85.          ldx #40
  86.          sta $d011
  87.          stx $d018
  88.          lda $5f
  89.          sta $d020
  90.          sta $d021
  91.          lda #58
  92.          ldx #56
  93.          sta $d011
  94.          stx $d018
  95.          lda $5f
  96.          sta $d020
  97.          sta $d021
  98.          lda #59
  99.          ldx #72
  100.          sta $d011
  101.          stx $d018
  102.          lda $50
  103.          sta $d020
  104.          sta $d021
  105.          lda #60
  106.          ldx #88
  107.          sta $d011
  108.          stx $d018
  109.          lda $51
  110.          sta $d020
  111.          sta $d021
  112.          lda #61
  113.          ldx #104
  114.          sta $d011
  115.          stx $d018
  116.          lda $52
  117.          sta $d020
  118.          sta $d021
  119.          lda #62
  120.          ldx #120
  121.          sta $d011
  122.          stx $d018
  123.          lda $50
  124.          sta $d020
  125.          sta $d021
  126.  
  127.          lda #63    ;Line #2
  128.          ldx #8
  129.          sta $d011
  130.          stx $d018
  131.          lda $51
  132.          sta $d020
  133.          sta $d021
  134.          lda #56
  135.          ldx #24
  136.          sta $d011
  137.          stx $d018
  138.          lda $52
  139.          sta $d020
  140.          sta $d021
  141.          lda #57
  142.          ldx #40
  143.          sta $d011
  144.          stx $d018
  145.          lda $53
  146.          sta $d020
  147.          sta $d021
  148.          lda #58
  149.          ldx #56
  150.          sta $d011
  151.          stx $d018
  152.          lda $50
  153.          sta $d020
  154.          sta $d021
  155.          lda #59
  156.          ldx #72
  157.          sta $d011
  158.          stx $d018
  159.          lda $51
  160.          sta $d020
  161.          sta $d021
  162.          lda #60
  163.          ldx #88
  164.          sta $d011
  165.          stx $d018
  166.          lda $52
  167.          sta $d020
  168.          sta $d021
  169.          lda #61
  170.          ldx #104
  171.          sta $d011
  172.          stx $d018
  173.          lda $53
  174.          sta $d020
  175.          sta $d021
  176.          lda #62
  177.          ldx #120
  178.          sta $d011
  179.          stx $d018
  180.          lda $54
  181.          sta $d020
  182.          sta $d021
  183.  
  184.          lda #63   ;Line #3
  185.          ldx #8
  186.          sta $d011
  187.          stx $d018
  188.          lda $55
  189.          sta $d020
  190.          sta $d021
  191.          lda #56
  192.          ldx #24
  193.          sta $d011
  194.          stx $d018
  195.          lda $50
  196.          sta $d020
  197.          sta $d021
  198.          lda #57
  199.          ldx #40
  200.          sta $d011
  201.          stx $d018
  202.          lda $51
  203.          sta $d020
  204.          sta $d021
  205.          lda #58
  206.          ldx #56
  207.          sta $d011
  208.          stx $d018
  209.          lda $52
  210.          sta $d020
  211.          sta $d021
  212.          lda #59
  213.          ldx #72
  214.          sta $d011
  215.          stx $d018
  216.          lda $53
  217.          sta $d020
  218.          sta $d021
  219.          lda #60
  220.          ldx #88
  221.          sta $d011
  222.          stx $d018
  223.          lda $54
  224.          sta $d020
  225.          sta $d021
  226.          lda #61
  227.          ldx #104
  228.          sta $d011
  229.          stx $d018
  230.          lda $55
  231.          sta $d020
  232.          sta $d021
  233.          lda #62
  234.          ldx #120
  235.          sta $d011
  236.          stx $d018
  237.          lda $56
  238.          sta $d020
  239.          sta $d021
  240.  
  241.          lda #63   ;Line #4
  242.          ldx #8
  243.          sta $d011
  244.          stx $d018
  245.          lda $57
  246.          sta $d020
  247.          sta $d021
  248.          lda #56
  249.          ldx #24
  250.          sta $d011
  251.          stx $d018
  252.          lda $50
  253.          sta $d020
  254.          sta $d021
  255.          lda #57
  256.          ldx #40
  257.          sta $d011
  258.          stx $d018
  259.          lda $51
  260.          sta $d020
  261.          sta $d021
  262.          lda #58
  263.          ldx #56
  264.          sta $d011
  265.          stx $d018
  266.          lda $52
  267.          sta $d020
  268.          sta $d021
  269.          lda #59
  270.          ldx #72
  271.          sta $d011
  272.          stx $d018
  273.          lda $53
  274.          sta $d020
  275.          sta $d021
  276.          lda #60
  277.          ldx #88
  278.          sta $d011
  279.          stx $d018
  280.          lda $54
  281.          sta $d020
  282.          sta $d021
  283.          lda #61
  284.          ldx #104
  285.          sta $d011
  286.          stx $d018
  287.          lda $55
  288.          sta $d020
  289.          sta $d021
  290.          lda #62
  291.          ldx #120
  292.          sta $d011
  293.          stx $d018
  294.          lda $56
  295.          sta $d020
  296.          sta $d021
  297.  
  298.          lda #63   ;Line #5
  299.          ldx #8
  300.          sta $d011
  301.          stx $d018
  302.          lda $57
  303.          sta $d020
  304.          sta $d021
  305.          lda #56
  306.          ldx #24
  307.          sta $d011
  308.          stx $d018
  309.          lda $58
  310.          sta $d020
  311.          sta $d021
  312.          lda #57
  313.          ldx #40
  314.          sta $d011
  315.          stx $d018
  316.          lda $59
  317.          sta $d020
  318.          sta $d021
  319.          lda #58
  320.          ldx #56
  321.          sta $d011
  322.          stx $d018
  323.          lda $52
  324.          sta $d020
  325.          sta $d021
  326.          lda #59
  327.          ldx #72
  328.          sta $d011
  329.          stx $d018
  330.          lda $53
  331.          sta $d020
  332.          sta $d021
  333.          lda #60
  334.          ldx #88
  335.          sta $d011
  336.          stx $d018
  337.          lda $54
  338.          sta $d020
  339.          sta $d021
  340.          lda #61
  341.          ldx #104
  342.          sta $d011
  343.          stx $d018
  344.          lda $55
  345.          sta $d020
  346.          sta $d021
  347.          lda #62
  348.          ldx #120
  349.          sta $d011
  350.          stx $d018
  351.          lda $56
  352.          sta $d020
  353.          sta $d021
  354.  
  355.          lda #63   ;Line #6
  356.          ldx #8
  357.          sta $d011
  358.          stx $d018
  359.          lda $57
  360.          sta $d020
  361.          sta $d021
  362.          lda #56
  363.          ldx #24
  364.          sta $d011
  365.          stx $d018
  366.          lda $58
  367.          sta $d020
  368.          sta $d021
  369.          lda #57
  370.          ldx #40
  371.          sta $d011
  372.          stx $d018
  373.          lda $59
  374.          sta $d020
  375.          sta $d021
  376.          lda #58
  377.          ldx #56
  378.          sta $d011
  379.          stx $d018
  380.          lda $54
  381.          sta $d020
  382.          sta $d021
  383.          lda #59
  384.          ldx #72
  385.          sta $d011
  386.          stx $d018
  387.          lda $55
  388.          sta $d020
  389.          sta $d021
  390.          lda #60
  391.          ldx #88
  392.          sta $d011
  393.          stx $d018
  394.          lda $56
  395.          sta $d020
  396.          sta $d021
  397.          lda #61
  398.          ldx #104
  399.          sta $d011
  400.          stx $d018
  401.          lda $57
  402.          sta $d020
  403.          sta $d021
  404.          lda #62
  405.          ldx #120
  406.          sta $d011
  407.          stx $d018
  408.          lda $58
  409.          sta $d020
  410.          sta $d021
  411.  
  412.          lda #63   ;Line #7
  413.          ldx #8
  414.          sta $d011
  415.          stx $d018
  416.          lda $59
  417.          sta $d020
  418.          sta $d021
  419.          lda #56
  420.          ldx #24
  421.          sta $d011
  422.          stx $d018
  423.          lda $56
  424.          sta $d020
  425.          sta $d021
  426.          lda #57
  427.          ldx #40
  428.          sta $d011
  429.          stx $d018
  430.          lda $57
  431.          sta $d020
  432.          sta $d021
  433.          lda #58
  434.          ldx #56
  435.          sta $d011
  436.          stx $d018
  437.          lda $58
  438.          sta $d020
  439.          sta $d021
  440.          lda #59
  441.          ldx #72
  442.          sta $d011
  443.          stx $d018
  444.          lda $59
  445.          sta $d020
  446.          sta $d021
  447.          lda #60
  448.          ldx #88
  449.          sta $d011
  450.          stx $d018
  451.          lda $57
  452.          sta $d020
  453.          sta $d021
  454.          lda #61
  455.          ldx #104
  456.          sta $d011
  457.          stx $d018
  458.          lda $58
  459.          sta $d020
  460.          sta $d021
  461.          lda #62
  462.          ldx #120
  463.          sta $d011
  464.          stx $d018
  465.          lda $59
  466.          sta $d020
  467.          sta $d021
  468.          lda #63
  469.          ldx #12
  470.          sta $d011
  471.          stx $d018
  472.          lda #0
  473.          sta $d020
  474.          sta $d021
  475.          lda #88
  476.          sta $d011
  477.  
  478.          rts
  479.  
  480.  
  481.  
  482.  
  483.  
  484. ;--------------- G A M E ---------------
  485.  
  486.  
  487. game
  488.          lda #64
  489.          sta $d011
  490.          sta $d020
  491.          sta $d021
  492.  
  493.          ldx #0
  494. in1      lda #255
  495.          sta $4000,x
  496.          lda #0
  497.          sta $d800,x
  498.          sta $d900,x
  499.          sta $da00,x
  500.          sta $db00,x
  501.          dex
  502.          bne in1
  503.  
  504.          ldx #6
  505.          lda #255
  506. in2      sta backxh,x
  507.          sta packxh,x
  508.          dex
  509.          bpl in2
  510.  
  511.          lda #$44    ;Aufbau des
  512.          sta in6+2   ;Sterne-Himmels
  513.          ldx #0
  514.          stx in6+1
  515.          ldy #0
  516. in5      tya
  517.          clc
  518.          adc starl,x
  519.          and #31
  520. in6      sta $4400,y
  521.          iny
  522.          cpy #40
  523.          bne in5
  524.          lda in6+1
  525.          clc
  526.          adc #40
  527.          sta in6+1
  528.          bcc in7
  529.          inc in6+2
  530. in7      inx
  531.          cpx #24
  532.          bne in5-2
  533.  
  534.          ldx #39
  535. in8      lda #32
  536.          sta $4400+960,x
  537.          lda #255
  538.          sta $4100,x
  539.          dex
  540.          bpl in8
  541.  
  542.          lda #0
  543.          sta end+1
  544.          sta backpoint
  545.          sta packpoint
  546.          sta backspr
  547.          sta packspr
  548.  
  549.          lda #1
  550.          sta t20+1
  551.          lda #15
  552.          sta t30+1
  553.  
  554.          lda #14   ;Player-Init
  555.          sta c
  556.          lda #48
  557.          sta b
  558.          lda #80
  559.          sta x
  560.          lda #140
  561.          sta y
  562.          lda #0
  563.          sta xh
  564.  
  565.          sei       ;Irq+Grafik-Modi
  566.          lda #<irq
  567.          sta $fffe
  568.          lda #>irq
  569.          sta $ffff
  570.          lda #129
  571.          sta $d01a
  572.          lda #250
  573.          sta $d012
  574.          lda #27
  575.          sta $d011
  576.          lda #198
  577.          sta $dd00
  578.          lda #16
  579.          sta $d018
  580.          lda #200
  581.          sta $d016
  582.  
  583.          cli
  584.  
  585. s1
  586.  
  587. end      lda #0      ;Ende ?
  588.          beq noend
  589.          lda #64
  590.          sta $d011
  591.          sta $d021
  592.          sei
  593.          jmp title
  594. noend
  595.          jmp s1
  596.  
  597.  
  598. starl    .byte 0,5,20,13,28
  599.          .byte 14,3,9,23,18
  600.          .byte 4,10,21,8,27
  601.          .byte 11,2,26,15,6
  602.          .byte 24,1,16,29,7
  603.  
  604.  
  605. nmi      inc end+1 ;*** NMI ***
  606.          rti
  607.  
  608.  
  609. irq      pha       ;*** IRQ ***
  610.          txa
  611.          pha
  612.          tya
  613.          pha
  614.          lda $d019
  615.          sta $d019
  616.          bmi t1
  617.          lda $dc0d
  618.          cli
  619. irqend   pla
  620.          tay
  621.          pla
  622.          tax
  623.          pla
  624.          rti
  625.  
  626.  
  627. t1
  628.          inc bord
  629.  
  630.          lda #255
  631.          sta v+21
  632.          sta v+28
  633.          lda #11
  634.          sta v+37
  635.          lda #1
  636.          sta v+38
  637.  
  638.          ldx #15
  639. t5       lda starp,x  ;Star-moving!
  640.          and #248
  641.          sta t6+1
  642.          txa
  643.          and #7
  644.          tay
  645.          lda #255
  646. t6       sta $4000,y
  647.          lda starp,x
  648.          sec
  649.          sbc stars,x
  650.          sta starp,x
  651.          and #248
  652.          sta t7+1
  653.          lda starp,x
  654.          and #7
  655.          sta tt7+1
  656. tt7      lda und
  657. t7       sta $4000,y
  658.          dex
  659.          bpl t5
  660.  
  661.          inc t8+1     ;Star-Flashing!
  662. t8       lda #0
  663.          lsr a
  664.          and #15
  665.          tax
  666.          lda stflash,x
  667.          sta $d021
  668.  
  669.  
  670.  
  671.  
  672.          lda $dc00  ;Joystick-Control!
  673.          sta joyst
  674.          and #1
  675.          bne t11
  676.          lda y
  677.          cmp #52
  678.          bcc t12
  679.          sbc #2
  680.          sta y
  681. t11      lda joyst
  682.          and #2
  683.          bne t12
  684.          lda y
  685.          cmp #224
  686.          bcs t12
  687.          adc #2
  688.          sta y
  689. t12      lda joyst
  690.          and #4
  691.          bne t13
  692.          lda ix
  693.          cmp #13
  694.          bcc t14
  695.          lda x
  696.          sbc #2
  697.          sta x
  698.          bcs t14
  699.          dec xh
  700. t13      lda joyst
  701.          and #8
  702.          bne t14
  703.          lda ix
  704.          cmp #160
  705.          bcs t14
  706.          lda x
  707.          adc #2
  708.          sta x
  709.          bcc t14
  710.          inc xh
  711. t14
  712.  
  713.  
  714.          lda x    ;Player-Sprite!
  715.          sta v
  716.          lda y
  717.          sta v+1
  718.          lda xh
  719.          sta v+16
  720.          lda b
  721.          sta be
  722.          lda c
  723.          sta v+39
  724.  
  725.  
  726.          dec t20+1
  727. t20      lda #1  ;* New Back-Sprites *
  728.          bne t22-2
  729.          ldx backpoint
  730.          ldy backspr
  731.          lda backtime,x
  732.          bne t21
  733.          ldx #0
  734.          stx backpoint
  735.          lda backtime,x
  736. t21      sta t20+1
  737.          lda backbdat,x
  738.          sta backb,y
  739.          lda #84
  740.          sta backx,y
  741.          lda #1
  742.          sta backxh,y
  743.          inc backpoint
  744.          inc backspr
  745.          lda backspr
  746.          cmp #7
  747.          bne t22-2
  748.          lda #0
  749.          sta backspr
  750.  
  751.          ldx #6
  752. t22      lda backx,x  ;Back X-moving!
  753.          sec
  754.          sbc #4
  755.          sta backx,x
  756.          bcs t23
  757.          dec backxh,x
  758. t23      lda backxh,x ;Back to Sprites!
  759.          bmi t25
  760.          beq t24
  761.          lda v+16
  762.          ora oder+1,x
  763.          sta v+16
  764. t24      ldy mal2,x
  765.          lda backx,x
  766.          sta v+2,y
  767.          lda #50
  768.          sta v+3,y
  769.          lda backb,x
  770.          sta be+1,x
  771.          lda #15
  772.          sta v+40,x
  773. t25      dex
  774.          bpl t22
  775.  
  776.  
  777.          dec t30+1
  778. t30      lda #1  ;* New Pack-Sprites *
  779.          bne t32-2
  780.          ldx packpoint
  781.          ldy packspr
  782.          lda packtime,x
  783.          bne t31
  784.          ldx #0
  785.          stx packpoint
  786.          lda packtime,x
  787. t31      sta t30+1
  788.          lda packbdat,x
  789.          sta packb,y
  790.          lda #84
  791.          sta packx,y
  792.          lda #1
  793.          sta packxh,y
  794.          inc packpoint
  795.          inc packspr
  796.          lda packspr
  797.          cmp #7
  798.          bne t32-2
  799.          lda #0
  800.          sta packspr
  801.  
  802.          ldx #6
  803. t32      lda packx,x  ;Back X-moving!
  804.          sec
  805.          sbc #4
  806.          sta packx,x
  807.          bcs t33
  808.          dec packxh,x
  809. t33      dex
  810.          bpl t32
  811.  
  812.  
  813.  
  814. t40      lda #0    ;* 1/3-Action *
  815.          bne t50
  816.  
  817.          inc b   ;Ship circling!
  818.          lda b
  819.          cmp #56
  820.          bne t41
  821.          lda #48
  822.          sta b
  823. t41
  824.          ldx #7
  825. t42      inc b,x
  826.          lda b,x
  827.          and #7
  828.          ora #64
  829.          sta b,x
  830.          dex
  831.          bne t42
  832.  
  833.          jmp t70
  834.  
  835.  
  836. t50      cmp #1    ;* 2/3-Action *
  837.          bne t60
  838.  
  839.          jmp t70
  840.  
  841.  
  842. t60      lda #255  ;* 3/3-Action *
  843.          sta t40+1
  844.  
  845.  
  846.  
  847. t70      inc t40+1
  848.  
  849.  
  850.  
  851.          ldx #7
  852. t80      lda x,x  ;* x to ix *
  853.          lsr a
  854.          ldy xh,x
  855.          beq t81
  856.          ora #128
  857. t81      sta ix,x
  858.          dex
  859.          bpl t80
  860.  
  861.  
  862.  
  863. k1       lda $d011
  864.          bmi k1
  865.          lda #71
  866. k2       cmp $d012
  867.          bcs k2
  868.  
  869.          lda v+16
  870.          and #1
  871.          sta v+16
  872.          ldx #6
  873. k3       lda packxh,x ;Pack-Spr.oben!
  874.          bmi k5
  875.          beq k4
  876.          lda v+16
  877.          ora oder+1,x
  878.          sta v+16
  879. k4       ldy mal2,x
  880.          lda packx,x
  881.          sta v+2,y
  882.          lda #80
  883.          sta v+3,y
  884.          lda packb,x
  885.          sta be+1,x
  886.          lda #15
  887.          sta v+40,x
  888. k5       dex
  889.          bpl k3
  890.  
  891.  
  892.  
  893.          lda #101
  894. k20      cmp $d012
  895.          bcs k20
  896.          lda v+16
  897.          and #1
  898.          sta v+16
  899.  
  900.          ldx #7
  901. k21      ldy mal2,x ;* Enemy Sprites *
  902.          lda x,x
  903.          sta v,y
  904.          lda y,x
  905.          sta v+1,y
  906.          lda b,x
  907.          sta be,x
  908.          lda c,x
  909.          sta v+39,x
  910.          lda xh,x
  911.          beq k22
  912.          lda v+16
  913.          ora oder,x
  914.          sta v+16
  915. k22      dex
  916.          bne k21
  917.  
  918.  
  919.  
  920.          lda #190
  921. k50      cmp $d012  ;Pack-Spr.unten!
  922.          bcs k50
  923.  
  924.          lda v+16
  925.          and #1
  926.          sta v+16
  927.  
  928.          ldx #6
  929. k51      ldy mal2,x
  930.          lda packxh,x
  931.          bmi kk52
  932.          beq k52
  933.          lda v+16
  934.          ora oder+1,x
  935.          sta v+16
  936. k52      lda #198
  937.          sta v+3,y
  938.          lda packx,x
  939.          sta v+2,y
  940.          lda packb,x
  941.          ora #8
  942.          sta be+1,x
  943.          lda #15
  944.          sta v+40,x
  945. kk52     dex
  946.          bpl k51
  947.  
  948.          lda #220
  949. k53      cmp $d012  ;Back-Spr.unten!
  950.          bcs k53
  951.  
  952.          lda v+16
  953.          and #1
  954.          sta v+16
  955.  
  956.          ldx #6
  957. k54      ldy mal2,x
  958.          lda backxh,x
  959.          bmi kk55
  960.          beq k55
  961.          lda v+16
  962.          ora oder+1,x
  963.          sta v+16
  964. k55      lda #228
  965.          sta v+3,y
  966.          lda backx,x
  967.          sta v+2,y
  968.          lda backb,x
  969.          ora #8
  970.          sta be+1,x
  971.          lda #15
  972.          sta v+40,x
  973. kk55     dex
  974.          bpl k54
  975.  
  976.  
  977.  
  978.  
  979.          lda #0
  980.          sta bord
  981.  
  982.          jmp irqend
  983.  
  984.  
  985. starp    .byte 220,10,140,200
  986.          .byte 160,180,100,50
  987.          .byte 40,90,80,240
  988.          .byte 150,110,134,215
  989. stars    .byte 1,2,1,3,1,4,1,3
  990.          .byte 2,1,4,1,1,1,3,1
  991.  
  992.  
  993. stflash  .byte 11,12,12,15,3,13,7,1
  994.          .byte 1,1,7,13,3,15,12,12
  995.  
  996.  
  997. ;-------------- T I T L E --------------
  998.  
  999.  
  1000. title
  1001.          sei
  1002.          lda #0
  1003.          sta $d020
  1004.          sta $d021
  1005.          sta $d01a
  1006.          sta $d011
  1007.          sta v+27
  1008.          sta v+23
  1009.          sta v+29
  1010.          sta fly1+1
  1011.          ldx #16
  1012. ti0      sta $d000,x
  1013.          sta $d400,x
  1014.          sta $d408,x
  1015.          dex
  1016.          bpl ti0
  1017.  
  1018.          ldx #0
  1019.          lda #$35
  1020.          sta 1
  1021. ti1      lda $bc00,x
  1022.          sta $d800,x
  1023.          lda $bc18,x
  1024.          sta $d818,x
  1025.          lda #0
  1026.          sta $d918,x
  1027.          lda #9
  1028.          sta $d940,x
  1029.          sta $da40,x
  1030.          sta $db00,x
  1031.          dex
  1032.          bne ti1
  1033.  
  1034.  
  1035.  
  1036.  
  1037.          lda #<nmi
  1038.          sta $fffa
  1039.          sta $fffe
  1040.          lda #>nmi
  1041.          sta $fffb
  1042.          sta $ffff
  1043.  
  1044.  
  1045.          lda #196
  1046.          sta 56576
  1047.          lda #27
  1048.          sta $d011
  1049.          lda #224
  1050.          sta 56322
  1051.  
  1052.  
  1053.  
  1054. ti20     lda $d011
  1055.          bmi ti20
  1056.          sei
  1057.          lda #120
  1058.          sta $d011
  1059.          lda #216
  1060.          sta 53270
  1061.          lda #24
  1062.          sta 53272
  1063.  
  1064.  
  1065.          jsr fli   ;** FLI-Logo! **
  1066.  
  1067.  
  1068.          lda #24   ;Text-Mode
  1069.          sta $d011
  1070.  
  1071.          ldx #0    ;Colour-changing...
  1072. ti25     lda tiwait,x
  1073.          cmp $d012
  1074.          bcs ti25
  1075.          lda ticol1,x
  1076.          sta $d022
  1077.          lda ticol2,x
  1078.          sta $d023
  1079.          inx
  1080.          cpx #4
  1081.          bne ti25
  1082.  
  1083. ti26     lda $dc00 ;Joy-Button ?
  1084.          and #16
  1085.          bne ti28
  1086.          jmp game
  1087.  
  1088. ti28
  1089.  
  1090.  
  1091.  
  1092. ti99     lda $d011
  1093.          bpl ti99
  1094.          jmp ti20
  1095.  
  1096.  
  1097.  
  1098. joyst    .byte 0
  1099.  
  1100. x        .byte 0,200,225,225
  1101.          .byte 250,250,19,19
  1102. xh       .byte 0,0,0,0,0,0,1,1
  1103. y        .byte 0,140,130,150
  1104.          .byte 120,160,110,170
  1105. b        .byte 0,64,65,71,66,70,67,69
  1106. c        .byte 0,7,10,10,14,14,5,5
  1107. ix       .byte 0,0,0,0,0,0,0,0
  1108.  
  1109. backx    .byte 0,0,0,0,0,0,0
  1110. backxh   .byte 0,0,0,0,0,0,0
  1111. backb    .byte 0,0,0,0,0,0,0
  1112.  
  1113. backpoint .byte 0
  1114. backspr  .byte 0
  1115. backtime .byte 6,20,6,6,15
  1116.          .byte 6,40
  1117.          .byte 6,6,6,15
  1118.          .byte 6,6,40
  1119.          .byte 30,20,6,6,6,6,40
  1120.          .byte 0
  1121. backbdat .byte 128,130,128,129,130
  1122.          .byte 128,130
  1123.          .byte 128,129,129,130
  1124.          .byte 128,129,130
  1125.          .byte 131,132
  1126.          .byte 128,129,129,129,130
  1127.  
  1128. packx    .byte 0,0,0,0,0,0,0
  1129. packxh   .byte 0,0,0,0,0,0,0
  1130. packb    .byte 0,0,0,0,0,0,0
  1131.  
  1132. packpoint .byte 0
  1133. packspr  .byte 0
  1134. packtime .byte 32,22,12,22
  1135.          .byte 6,32,38
  1136.          .byte 0
  1137.  
  1138. packbdat .byte 131,131,132,131
  1139.          .byte 128,130,131
  1140.  
  1141. oder     .byte 1,2,4,8,16,32,64,128
  1142. mal2     .byte 0,2,4,6,8,10,12,14
  1143.  
  1144. tiwait   .byte 100,134,158,188
  1145. ticol1   .byte 9,6,9,4
  1146. ticol2   .byte 5,14,10,12
  1147.  
  1148.          *= $9f00
  1149.  
  1150. und      .byte 127,191,223,239
  1151.          .byte 247,251,253,254
  1152.  
  1153.